﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace FlyingClub.Models.ViewsModels
{
    public class FlightCreate
    {
        public int DepartureDay { get; set; }
        public int DepartureMonth { get; set; }
        public int DepartureYear { get; set; }
        public int DepartureHour { get; set; }
        [Required(ErrorMessage="Un aéroport de départ est requis")]
        public string DepartureAirfield { get; set; }

        public int ArrivalDay { get; set; }
        public int ArrivalMonth { get; set; }
        public int ArrivalYear { get; set; }
        public int ArrivalHour { get; set; }
        [Required(ErrorMessage="Un aéroport d'arrivée est requis")]
        public string ArrivalAirfield { get; set; }

        [Required(ErrorMessage="Un pilote est requis")]
        public int PilotID { get; set; }
        public int StudentID { get; set; }
        [Required(ErrorMessage="Un avion est requis")]
        public int PlaneID { get; set; }
    }
}